public class ApplyProblem {
    /**
     * 应用问题
     *author:王锦林
     * time:2020-6-13
     * @param args
     */
    public static void main(String[] args) {
        // 计算 x 的值
        int x = 80;

        // 计算每个人加工的零件数量
        int jia = x - 10;
        int yi = x + 20;
        int bing = x / 2;
        int ding = x * 2;

        // 输出结果
        System.out.println("甲加工 " + jia + " 个零件");
        System.out.println("乙加工 " + yi + " 个零件");
        System.out.println("丙加工 " + bing + " 个零件");
        System.out.println("丁加工 " + ding + " 个零件");

        // 验证总和是否等于 370
        int total = jia + yi + bing + ding;
        System.out.println("四人共加工 " + total + " 个零件");
    }
}
